#include<iostream>
#include<cstdlib>
using namespace std;

char *strcat(char *str1,char *str2)
{
	int i,count1=0,count2=0;
	char *a=str1;
	char *b=str2;
	char *src;
	while(*a!='\0')
		{
		count1++;
		a++;
		}
	while(*b!='0')
	{
		count2++;
		b++;
	}
	src=(char *)malloc(sizeof(char)*(count1+count2+1));
	for(i=0;i<count1;i++)
		src[i]=str1[i];
	for(i=count1;i<count1+count2;i++)
		src[i]=str2[i-count1];
		src[i]='\0';
	return src;
 } 
 int main()
 {
 	//char *x1="Hello";
 	//char *x2="World";
 	char x1[200];
 	char x2[200];
 	gets(x1);
 	gets(x2);
 	char *sum;
 	sum=strcat(x1,x2);
 	cout<<sum<<endl;
 	return 0;
 	
 }
